import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
//路由守卫
import "./guard"

//面包屑组件
import breadCrumb from "./components/breadCrumb/index.vue"

import router from "./router"

//eventBus
import bus from './utils/bus'

let app = createApp(App)
//注册全局组件，所有的组件里面不需要引入就可以使用
app.component('breadCrumb',breadCrumb)
//将 bus添加到全局
app.config.globalProperties.$bus = bus

app.use(router)

app.mount('#app')
